-- GENERATED SPELL FOR [Kel'Thuzad] --


function spell0_25465(pUnit, Event) --@Soul Flay,n/a--
pUnit:FullCastSpellOnTarget(50319,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25465', 1000, 1)
end

function spell1_25465(pUnit, Event) --@Unholy Frenzy,Self--
pUnit:FullCastSpellOnTarget(50312,pUnit)
pUnit:RegisterEvent('Sorts_25465', 30302, 1)
end

function Sorts_25465(pUnit, Event)
local choix_sorts_25465 = math.random(0, 1)
if choix_sorts_25465 == 0 then
pUnit:RegisterEvent('spell0_25465', 1, 1)
end
if choix_sorts_25465 == 1 then
pUnit:RegisterEvent('spell1_25465', 1, 1)
end
end

function mob25465_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25465', math.random(1500, 3000), 1)
end

function mob25465_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25465_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25465_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25465, 1, 'mob25465_Action')
RegisterUnitEvent(25465, 2, 'mob25465_Leave')
RegisterUnitEvent(25465, 3, 'mob25465_Kill')
RegisterUnitEvent(25465, 4, 'mob25465_Die')
